//
//  DealsRecordCell.m
//  EMMApp
//
//  Created by 无常先生 on 2018/8/29.
//  Copyright © 2018年 YiXun. All rights reserved.
//

#import "DealsRecordCell.h"
#import "DealsSubscribeModel.h"

@interface DealsRecordCell ()
@property (weak, nonatomic) IBOutlet UIView *containerView;
@property (weak, nonatomic) IBOutlet UILabel *buildingName;
@property (weak, nonatomic) IBOutlet UILabel *waiterName;
@property (weak, nonatomic) IBOutlet UILabel *clientName;
@property (weak, nonatomic) IBOutlet UILabel *timeLable;


@end

@implementation DealsRecordCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = [UIColor colorFromHexCode:@"#f8f8f8"];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    self.containerView.layer.cornerRadius = 4;
    [self.containerView setClipsToBounds:YES];
    self.containerView.layer.borderColor = [UIColor colorFromHexCode:@"#8e8e8e"].CGColor;
    self.containerView.layer.borderWidth = 0.5;

}

-(void)setSubscribModel:(DealsSubscriListModel *)subscribModel {
    _subscribModel = subscribModel;
    self.containerView.backgroundColor = [UIColor colorFromHexCode:@"#eb9192"];
    self.buildingName.text = subscribModel.subscribeHouses;
    self.waiterName.text = subscribModel.userName;
    self.clientName.text = subscribModel.customerName;
    self.timeLable.text = subscribModel.subscribeDate;
}

-(void)setSignModel:(DealsSubscriListModel *)signModel {
    _signModel = signModel;
     self.containerView.backgroundColor = [UIColor colorFromHexCode:@"#ac91eb"];
    self.buildingName.text = signModel.signedHouses;
    self.waiterName.text = signModel.userName;
    self.clientName.text = signModel.customerName;
    self.timeLable.text = signModel.signedDate;
}

@end
